// Learn cc.Class:
//  - https://docs.cocos.com/creator/manual/en/scripting/class.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html

cc.Class({
    extends: cc.Component,

    properties: {
        shopName:cc.Label,
        workers:cc.Label,
        income:cc.Label,
        status:cc.Label,
        money:cc.Label,
        customer:cc.Label,
        id:cc.String
    },

    start () {
        
    },
    toDetail(target,data){
        //跳转页面
        let tmp = cc.find('Canvas/show').getComponent('tabshow');
        cc.log(target.target)
        window.shopId = target.target.id;
        tmp.changeTab(null,"shopDetail");
    }
    // update (dt) {},
});
